You can use the tools available on the ROI Painter and ROI Tools panels to quickly and easily label voxels that correspond to the multiple classes of a multi-ROI, or to edit a multi-ROI. For example, to train a deep model for semantic segmentation. The classes in a multi-ROI, as well as the number of labeled voxels in each class, are shown in the Classes and scalar information box on the Data Properties and Settings panel, as shown below. You can add and remove classes, clear classes, as well as extract and import the labeled voxels in regions of interest.
Classes and scalar information
The following items and options are available in the Classes and scalar information box for a selected multi-ROI:
|
|
Description |
|---|---|
|
Visible |
If selected, the labeled voxels in the class will be highlighted in the current scene views. |
|
Color |
Is the color of the highlight that is applied to the labeled voxels in a class. Note The opacity of the highlight is adjustable with the sliders in the 2D opacity and 3D opacity boxes.. |
|
Name |
Is the name assigned to a class. |
|
Count |
Is the total number of labeled voxels in a class. |
|
Add |
Lets you add one or more classes to the multi-ROI as follows: Add Class… Automatically adds a new class to the multi-ROI. Add Multiple Classes… Lets you choose the number of classes to add to the multi-ROI. |
|
Remove |
Deletes the selected class. |
|
Merge |
Merges the selected classes. Note The class name and color of the merged class are whose associated with the class you selected first and that is identified as 'A'. |
|
Background class |
If enabled, labeled voxels that are removed from any class, as well as unlabeled voxels that are painted, will be added automatically to the set background class (see Setting a Class as the Background). |
If this option is enabled, labeled voxels that are removed from any class, as well as unlabeled voxels that are painted, will be added automatically to the set background class.

The name and associated color of the class appear in the Background class box. To disable the background, check the None option.
Note If required, you can change the set background class by dragging another class to the Background class box.
You can use the tools available on the ROI Painter panel, shown below, to manually label the voxels of each class in a multi-ROI (see ROI Painter Tools).
ROI Painter panel
Note You can specify the number of classes required in the New Region of Interest dialog, shown below.


Note You can additional classes to the multi-ROI at anytime. Click the Add button and then do one of the following:

The requested number of classes are added to the multi-ROI.
Note All classes must be labeled on the image plane if your segmentation will be used to train a deep model or machine learning classifier (see Training Deep Models for Semantic Segmentation and Training Machine Learning Models for Segmentation).
For example, you may need to label voxels that correspond to a specific material type or phase or to an anatomical structure.

Note You can use the tools available on the ROI Painter and ROI Tools panels to label the multi-ROI (see ROI Painter Tools and ROI Tools). You can also define an intensity domain to facilitate segmentation tasks (see Defining Intensity Ranges).
Note The number of labeled voxels that correspond to each class is indicated in the Labeled Voxels column and is updated dynamically while you work.

You can edit the labels of each class within a multi-ROI with the ROI Painter tools, as well as add or remove clipped regions (Adding and Removing Clipped Regions). Additional options are available in the Classes pop-up menu to label all non-intersected voxels, clear classes, and import the labels of a region of interest (see Classes Pop-Up Menu).
You can add or remove labeled voxels from any selected class with the Brush tools. For example, in cases in which a feature of interest was misidentified as belonging to another class by the Segmentation Wizard during model training.
In this context, any voxel with a value outside the range will not be selectable (see Defining Intensity Ranges).
Note Labeled voxels cannot intersect. For example, if you are labeling voxels as 'Class 1' and paint over labeled voxels of another class, then those voxels will be automatically labeled as 'Class 1'.
You can choose to work in Exclusive mode with the Brush tools. In this mode, only the labeled voxels belonging to the selected classes will be affected when painting. Unlabeled voxels will not be painted. This option is available when you select multiple classes in the Classes and labels box.
The selected classes are identified as (A), (B), and so on.

As shown below, only the labeled voxels highlighted in yellow are re-assigned to those highlighted in blue when painting in Exclusive mode.
In addition the operations available for labeling and editing classes (see Editing Classes and Labels), a number of additional options are available in the Classes pop-up menu for automatically labeling voxels, importing and extracting regions of interest, as well as merging and deleting classes
Classes pop-up menu
The pop-up menu items available for single and multiple selections are described below.
|
|
Description |
|---|---|
|
Assign a Color to Each Class from a LUT |
Lets you automatically assign colors to each class from a selected LUT. |
|
Look at Center of Mass* |
Automatically aligns the center of mass of the labeled voxels of the selected class in the center of the current 2D scene views. Note The center of mass is calculated from the bounding box of the labeled voxels within the selected class. |
|
Label All Voxels as Class* |
Automatically labels all voxels in the multi-ROI as the selected class. Note In this case, all voxels previously labeled as other classes will be removed. |
|
Add All Unlabeled Voxels to Class* |
Automatically adds all unlabeled voxels to the selected class. |
|
Clear Class(es) |
Removes all labeled voxels from the selected class or classes. |
|
Delete Class(es) |
Deletes the selected class or classes. |
|
Merge Classes** |
Available for multiple selection only, merges the selected classes. Note The class name and color that are retained are whose associated with the first selected class. |
|
Extract as ROI(s) |
Creates a new region of interest that contains the labeled voxels of the selected class or creates new regions of interest that contain the labeled voxels of the selected classes. |
|
Import ROI* |
Lets you modify the labeled voxels within the selected class as follows: Add to class… Adds the labeled voxels of the selected region of interest to the class. Overwrite class… Replaces the labeled and unlabeled voxels of the class with the labels of the selected region of interest. Remove from class… Removes the labeled voxels of the selected region of interest that intersect with the labeled voxels of the class. Intersect with class… Keeps only the labeled voxels of the selected region of interest that intersect with the labeled voxels of the class. |
|
Label All Voxels in Shape as Class* |
Lets you label all of the voxels in a shape, as follows:
|
* Available for single selections only.
** Available for multiple selections only.